const formRules = {
  title: [
    {required: true, message: '请输入标题', trigger: 'blur'},
    {max: 30, message: '标题不能超过30个字'}
  ],
  author: [
    {max: 10, message: '作者不能超过10个字'}
  ],
  source: [
    {max: 10, message: '来源不能超过10个字'}
  ],
  url: [
    {required: true, message: '请上传缩略图', trigger: 'blur'}
  ],
  summary: [
    {max: 100, message: '摘要不能超过100个字'}
  ]
}

const typeArr = [{
  value: 'FOCUS_VIEW',
  label: '焦点透视'
}, {
  value: 'WEALTH_REPORT',
  label: '财富报告'
}, {
  value: 'WEALTH_SCHOOL',
  label: '财富学堂'
}, {
  value: 'NEWS',
  label: '华康新闻'
}];

export {
    formRules,
    typeArr
}
